package com.smilingsoftwaresolutions.funkata;

import java.awt.Color;

@Kata(directions="Refactor class into 2 or more classes")
public class Kid {

	private boolean toyWorks = true;
	private Color color;
	private boolean hasToy;

	public boolean hasToy() {
		return hasToy;
	}

	public void setToyColor(Color color) {
		this.color = color;
	}

	public Color getToyColor() {
		return color;
	}

	public boolean toyWorks() {
		return toyWorks;
	}

	public void breakToy() {
		toyWorks = false;
	}

	public boolean isSmiling() {
		return hasToy && toyWorks;
	}

	public void addToy() {
		hasToy = true;
	}


}
